package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.Widget;

public class NotYetImplementedEvent extends GwtEvent<NotYetImplementedHandler> {
	
	private static Type<NotYetImplementedHandler> TYPE = new Type<NotYetImplementedHandler>();

	private final Widget widget ;
	private final String eventName ;
	
	public NotYetImplementedEvent() {
		eventName = "";
		widget = null;
	}
	
	public NotYetImplementedEvent(GwtEvent<?> event) {
		eventName= event.getClass().toString();
		this.widget= null;
	}
	
	public NotYetImplementedEvent(GwtEvent<?> event, Widget widget) {
		eventName= event.getClass().toString();
		this.widget= widget;
	}

	@Override
	protected void dispatch(NotYetImplementedHandler handler) {
		handler.treatEvent(this);

	}
	
	public static Type<NotYetImplementedHandler> getType() {
		return TYPE;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<NotYetImplementedHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	public String getEventName() {
		return eventName;
	}
	public Widget getWidget() {
		return widget;
	}

}
